home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxclipsr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  55 lines

  1. /* Copyright (C) 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxclipsr.h,v 1.2 2000/09/19 19:00:34 lpd Exp $ */
  20. /* Internals of clipsave/cliprestore */
  21.  
  22. #ifndef gxclipsr_INCLUDED
  23. #  define gxclipsr_INCLUDED
  24.  
  25. #include "gsrefct.h"
  26.  
  27. /*
  28.  * Unlike the graphics state stack, which is threaded through the actual
  29.  * gstate objects, the clipping path stack is implemented with separate,
  30.  * small objects.  These are reference-counted, because they may be
  31.  * shared by off-stack graphics states.
  32.  */
  33.  
  34. #ifndef gx_clip_path_DEFINED
  35. #  define gx_clip_path_DEFINED
  36. typedef struct gx_clip_path_s gx_clip_path;
  37. #endif
  38. #ifndef gx_clip_stack_DEFINED
  39. #  define gx_clip_stack_DEFINED
  40. typedef struct gx_clip_stack_s gx_clip_stack_t;
  41. #endif
  42.  
  43. struct gx_clip_stack_s {
  44.     rc_header rc;
  45.     gx_clip_path *clip_path;
  46.     gx_clip_stack_t *next;
  47. };
  48.  
  49. #define private_st_clip_stack()    /* in gsclipsr.c */\
  50.   gs_private_st_ptrs2(st_clip_stack, gx_clip_stack_t,\
  51.     "gx_clip_stack_t", clip_stack_enum_ptrs, clip_stack_reloc_ptrs,\
  52.     clip_path, next)
  53.  
  54. #endif /* gxclipsr_INCLUDED */
  55.